package com.itany.ums.dao;

import com.itany.ums.entity.User;

import java.util.List;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/8/4 13:31
 * Version:1.0-SNAPSHOT
 * Description:
 */
public interface UserDao {

    public List<User> selectAll();

    public void insertUser(User user);

    public void deleteById(Integer id);

    public void modifyUser(User user);

    public User selectById(Integer id);

    /**
     * 保存返回主键
     * @param user
     */
    public void insertReturnPrimaryKey(User user);

    /**
     * 多参数查询
     * @param username
     * @param password
     * @return
     */
    public User selectByUsernameAndPassword(String username,String password);

}
